package com.zdl.interestingapp.data.api;

import com.zdl.interestingapp.data.model.QAndAModel;

import java.util.Map;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * @author zdl
 * @date 2018/4/23 11:53
 * email zdl328465042@163.com
 * description
 */
public interface RequestApi {

    /**
     * 调用只能机器人api，开始与机器人问答
     * @param key 固定参数free
     * @param msg
     * @return
     */
    @GET("api.php")
    Observable<QAndAModel> ask(
            @Query("key") String key,
            @Query("msg") String msg
    );
}
